<template>
  <el-row
    type="flex"
    justify="space-between"
    align="bottom"
    class="product-detail"
  >
    <div type="flex" class="left">
      <div class="label">投资预算完成情况</div>
      <ul class="content">
        <li class="item" v-for="item in 4" :key="item">
          <el-row
            type="flex"
            justify="space-between"
            align="middle"
            class="rank"
          >
            <el-row type="flex" align="middle" class="name">
              <div class="grade">{{ item }}</div>
              投资管理{{ item }}部
            </el-row>
            <div class="rate">120.1%</div>
          </el-row>
          <div class="groress-box">
            <div class="groress">
              <el-row type="flex" justify="space-between" align="middle">
                <div>实际</div>
                <div><span class="blue">663</span> 亿</div>
              </el-row>
              <div class="bg">
                <div class="bar"></div>
              </div>
            </div>
            <div class="groress">
              <el-row type="flex" justify="space-between" align="middle">
                <div>预算</div>
                <div><span class="blue">254</span> 亿</div>
              </el-row>
              <div class="bg">
                <div class="bar green"></div>
              </div>
            </div>
          </div>
        </li>
      </ul>
    </div>
    <div class="right">
      <el-row type="flex" justify="space-between" class="head">
        <div>入池</div>
        <div>立项</div>
        <div>尽调</div>
        <div>决策</div>
        <div>审批</div>
        <div>交割</div>
      </el-row>
      <ul class="content">
        <li class="item" v-for="item in 4" :key="item">
          <div>
            <div>项目完成数</div>
            <div>项目完成率</div>
          </div>
          <div class="blue">
            <div>7 个</div>
            <div>90%</div>
          </div>
          <div class="blue">
            <div>7 个</div>
            <div>90%</div>
          </div>
          <div class="blue">
            <div>7 个</div>
            <div>90%</div>
          </div>
          <div class="blue">
            <div>7 个</div>
            <div>90%</div>
          </div>
          <div class="blue">
            <div>7 个</div>
            <div>90%</div>
          </div>
          <div class="blue">
            <div>7 个</div>
            <div>90%</div>
          </div>
        </li>
      </ul>
    </div>
  </el-row>
</template>

<script>
export default {
  name: "productDetailModal",
  data() {
    return {};
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.product-detail {
  padding-top: 40px;
  .item {
    display: flex;
    justify-content: space-between;
    align-content: center;
    height: 84px;
    margin: 40px 0;
  }
  .left {
    display: flex;
    flex-direction: column;
    width: 700px;
    .label {
      align-self: flex-end;
      width: 440px;
      height: 38px;
      line-height: 38px;
      background: linear-gradient(
        90deg,
        rgba(72, 143, 255, 0) 0%,
        #488fff 52%,
        rgba(5, 32, 115, 0) 100%
      );
      font-size: 16px;
      font-weight: bold;
      text-align: center;
      color: #ffffff;
    }
    .rank {
      width: 260px;
    }
    .name {
      font-size: 18px;
      font-weight: bold;
      color: #ffffff;
    }
    .grade {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      width: 22px;
      height: 22px;
      margin-right: 8px;
      font-size: 16px;
      font-weight: bold;
      color: #ffffff;
    }
    .rate {
      font-size: 20px;
      font-weight: bold;
      color: #58b2ff;
    }
    .groress-box {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .groress {
      width: 400px;
      padding-right: 50px;
      color: #d2d6dd;
      &:first-child {
        margin-bottom: 12px;
      }
      .bg {
        position: relative;
        width: 100%;
        height: 8px;
        margin-top: 7px;
        background: #1b3358;

        .bar {
          position: relative;
          width: 45%;
          height: 100%;
          background: linear-gradient(
            90deg,
            rgba(15, 40, 78, 0) 0%,
            #488fff 100%
          );
          &::after {
            content: "";
            position: absolute;
            top: -1px;
            right: 0;
            z-index: 1;
            width: 2px;
            height: 10px;
            border-radius: 2px;
            background: #4abefe;
          }
          &.green {
            width: 60%;
            background: linear-gradient(
              90deg,
              rgba(26, 172, 134, 0) 0%,
              #1bb088 100%
            );
            &::after {
              background: #1bb088;
            }
          }
        }
      }
    }

    li {
      &:nth-child(1) .grade {
        background: #efa451;
      }
      &:nth-child(2) .grade {
        background: #7c8a9f;
      }
      &:nth-child(3) .grade {
        background: #d56c39;
      }
      &:nth-child(4) .grade {
        background: #1c427c;
      }
    }
  }
  .right {
    width: 620px;
    font-weight: bold;
    color: #ffffff;

    * {
      font-size: 16px;
    }
    .head {
      padding: 0 10px 0 110px;
      > div {
        width: 80px;
        text-align: center;
      }
    }

    .item {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 10px 0 30px;
      background: #1d355d;
      text-align: center;
      &:first-child {
        margin-top: 20px;
      }
      > div {
        width: 80px;
        > div:first-child {
          margin-bottom: 12px;
        }
      }
    }
  }
}
</style>
